package com.engine.init;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;
import javax.sql.DataSource;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;

@Component
@Slf4j
public class InitAutomaticDataProcess {

    @Autowired
    private static DataSource dataSource;

    @PostConstruct
    public static void initTableOpt() {
        log.info("定时自动处理已启动");
    }

    @Autowired
    public void setDataSource(DataSource dataSource) {
        InitAutomaticDataProcess.dataSource = dataSource;
    }

}
